IF exists (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[SelectProducto]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[SelectProducto]
GO

CREATE PROCEDURE [dbo].[SelectProducto]
(
	@IdProducto int
)
AS
BEGIN
	SET NOCOUNT ON

	SELECT
	[IdProducto],
	[Nombre],
	[Descripcion],
	[IdLinea],
	[Icono],
	[Imagen],
	[Estado]
	FROM [Producto]
	WHERE [IdProducto] = @IdProducto

	SET NOCOUNT OFF
END

GO
